package ooday03;

public class AnimalTest {
    public static void main(String[] args) {
        Dog wc = new Dog("旺财",1,"黑");
        wc.eat();
        wc.swim();
        wc.lookHome();
        System.out.println("========================================");

        Chick lmj = new Chick("老母鸡",1,"大红");
        lmj.eat();
        lmj.drink();
        lmj.layEgg();
        System.out.println("======================================");

        Fish sy = new Fish("鲨鱼",5,"白");

        sy.eat();
        sy.swim();
        System.out.println("================================");

        Duck tly = new Duck("唐老鸭",6,"银白色");
        tly.eat();
        tly.drink();
        tly.swim();
        tly.layEgg();
    }
}
